<%@page import="java.text.DateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>修改项目</title> 
<link href="resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="resources/css/index.css" rel="stylesheet">

</head>
<body>
	<s:include value="../header-common.jsp" />
<div class="container-fluid">
	<div class="row">
		<h1 style="text-align:center;text-shadow:1px 1px;">
			<span class="glyphicon glyphicon-question-sign"></span>修改项目
		</h1>
	</div>

	<div class="row">
		<s:if test="actionErrors.size()>0 || fieldErrors.size()>0">
			<div
				class="alert alert-danger col-sm-7 col-sm-offset-2">
				<s:actionerror />
			</div>
		</s:if>
	</div>
	<s:form id="checkUpdate" action="checkUpdateProject" method="post"
		class="form-horizontal container-fluid">
		<div class="form-group">
			<label class="col-sm-3 control-label">项目经理</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-10">
					<s:select name="pmId" list="mapEmployee" headerKey="%{pm.employeeId}" 
						headerValue="%{pm.employeeName}" listKey="key" listValue="value" 
						class="form-control"></s:select>
				</div>
			</div>
		</div>
		<input name="projectInfo.pmId" value="${projectInfo.pmId }" readonly style="display:none;">
		<div class="form-group">
			<label class="col-sm-3 control-label">项目名称</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-10">
					<input class="form-control" name="projectInfo.projectName"
						data-bv-notempty data-bv-notempty-message="名称不能为空"
						data-bv-stringlength data-bv-stringlength-min="5"
						placeholder="请输入名称" value="${projectInfo.projectName}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">项目状态</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-10">
					<select name="projectInfo.projectStatus" id="checkAdd_project_Status"
							class="form-control">
							<s:if test="projectInfo.projectStatus == 1">
							<option value="1" selected="selected">关闭</option>
							<option value="2">开启</option></s:if>
							<s:elseif test="projectInfo.projectStatus == 2">
							<option value="1">关闭</option>
							<option value="2" selected="selected">开启</option></s:elseif>
					</select>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">项目说明</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-10">
					<textarea rows="5" class="form-control" name="projectInfo.projectDescription"
						data-bv-stringlength data-bv-stringlength-min="5"
						placeholder="项目说明">${projectInfo.projectDescription}</textarea>
				</div>
			</div>
		</div>
		
		<div class="form-group">
			<label class="col-sm-3 control-label">项目周期</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-10">
					<input class="form-control" name="projectInfo.projectCycle"
						data-bv-notempty data-bv-notempty-message="项目周期不能为空"
						placeholder="请输入项目周期" value="${projectInfo.projectCycle }">
				</div>
			</div>
		</div>
		<input name="projectId" value="${projectInfo.projectId }" style="display: none;">
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-8">
				<div class="btn-group btn-group-justified">
					<a class="btn btn-primary"><button type="submit" id="ok"
							style="width:100%;background:none;border:0;margin:0;padding:0;">确认修改</button>
					</a><a class="btn btn-primary"><button type="reset"
							style="width:100%;background:none;border:0;margin:0;">重填</button></a>
					<a href="projectList.do" class="btn btn-primary">项目列表</a>
				</div>
			</div>
		</div>
	</s:form>
</div>
	
	<script src="resources/bootstrap/js/jquery.min.js"></script>
	<script src="resources/bootstrap/js/bootstrap.min.js"></script>

	<script	src="resources/bootstrap/js/bootstrapValidator.min.js"></script>
	<script	src="resources/bootstrap/js/zh_CN.min.js"></script>
	<script src="resources/bootstrap/js/moment.min.js"></script>
	<script	src="resources/bootstrap/js/bootstrap-datetimepicker.min.js"></script>
	
</body>
</html>
